using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JoystickController : MonoBehaviour
{
    private static JoystickController m_instance;

    public static JoystickController Instance => m_instance;

    private Vector2 m_MoveDirection;

    public Vector2 MoveDirection => m_MoveDirection;

    private void Awake()
    {
        m_instance = this;
        
    }

    private void Update()
    {
#if UNITY_EDITOR
        float horizontal = Input.GetAxisRaw("Horizontal");
        float vertical = Input.GetAxisRaw("Vertical");
        m_MoveDirection = new Vector2(horizontal, vertical).normalized;
#endif
    }
}